Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc.rust-lang.org: immutably cache static files #226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jsha
Copy link
Contributor

@jsha jsha commented Feb 4, 2023

In #108, @Mark-Simulacrum rightly pointed out that it would be better for rustdoc's static files to have hashes in the name, so we can confidently cache them immutably, knowing that if the contents ever change, the filename will also change.

That work is done in rust-lang/rust#98413, and all of stable, beta, and nightly docs have been built with that change. Also as part of the change, all static files are served from a separate directory, static.files/, so we know that any files in that directory may be cached immutably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant